<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>合伙人卡配置</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1487678421">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1487678421";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("config.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		if($("#tbpcXy").size()>0){
			 //构造编辑页tbPartnerConfig.tbpcXy为html编辑控件
			 KE.init({
				id : "tbpcXy",
				width : "750px",height : "300px", 
				imageUploadJson : window["uploadUrl"]
			 });
			 KE.create("tbpcXy");
		 }
		 
	$("#configForm").form({
		"":function(){}
		,"tbPartnerConfig.tbpcId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"tbPartnerConfig.tbpcCardName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "合伙人卡名称最大长度为32个字符";
		}
		,"tbPartnerConfig.tbpcPrice":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "价格输入格式错误";
		}
		,"tbPartnerConfig.tbpcProducts":function(el){
		}
		,"tbPartnerConfig.tbpcPtJj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "普通间接奖励输入格式错误";
		}
		,"tbPartnerConfig.tbpcPtZhj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "普通直接奖励输入格式错误";
		}
		,"tbPartnerConfig.tbpcDlJj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理间接奖励输入格式错误";
		}
		,"tbPartnerConfig.tbpcDlZhj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理直接奖励输入格式错误";
		}
		,"tbPartnerConfig.tbpcValidity":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"tbPartnerConfig.tbpcMoney":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "续期订单总额输入格式错误";
		}
		,"tbPartnerConfig.tbpcZcGsh":function(el){
			if(el.value.length>3000 && el.value.indexOf("[*]")==-1)
				return "政策概述最大长度为3000个字符";
		}
		,"tbPartnerConfig.tbpcXy":function(el){
			if($("#tbpcXy").get(0))
			 	KE.sync("tbpcXy");		 
		}
		,"tbPartnerConfig.tbpcFxZc":function(el){
			if(el.value.length>3000 && el.value.indexOf("[*]")==-1)
				return "奖励政策最大长度为3000个字符";
		}
		,"tbPartnerConfig.tbpcQyJsh":function(el){
			if(el.value.length>3000 && el.value.indexOf("[*]")==-1)
				return "权益介绍最大长度为3000个字符";
		}
		,"tbPartnerConfig.tbpcJrTj":function(el){
			if(el.value.length>3000 && el.value.indexOf("[*]")==-1)
				return "加入条件最大长度为3000个字符";
		}
		,"tbPartnerConfig.tbpcHhrQy":function(el){
			if(el.value.length>3000 && el.value.indexOf("[*]")==-1)
				return "合伙人权益介绍最大长度为3000个字符";
		}
		,"tbPartnerConfig.tbpcQrCode":function(el){
		}
		,"tbPartnerConfig.tbpcBrand":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="TbPartnerConfig" id="configForm" name="configForm" target="jsoniframe" action="config.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写合伙人卡配置相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("tbpcId_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcId"))))}}
	{{lz.set("tbpcId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcId}}
	<dl lz:if="{{tbpcId_editable||tbpcId_readonly}}" class="tbpcId hidden " major  ref="tbpcId">
		<dt>编　　号:</dt>
		<dd lz:if="{{tbpcId_editable}}" input="hidden">
			<lz:block lz:if="{{tbPartnerConfig$tbpcId}}">
				{{tbPartnerConfig$tbpcId}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcId}}">
			<input type="hidden" value="{{lz.htm(tbPartnerConfig.tbpcId)}}" name="tbPartnerConfig.tbpcId" id="tbpcId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcId">{{tbPartnerConfig.tbpcId}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcId$||tbPartnerConfig.tbpcId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcId}}
	{{lz.set("tbpcCardName_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcCardName"))))}}
	{{lz.set("tbpcCardName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcCardName}}
	<dl lz:if="{{tbpcCardName_editable||tbpcCardName_readonly}}" class="ribs tbpcCardName  " major  ref="tbpcCardName">
		<dt>合伙人卡名称:</dt>
		<dd lz:if="{{tbpcCardName_editable}}" input="text">
			<lz:block lz:if="{{tbPartnerConfig$tbpcCardName}}">
				{{tbPartnerConfig$tbpcCardName}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcCardName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbPartnerConfig.tbpcCardName" id="tbpcCardName"  value="{{lz.htm(tbPartnerConfig.tbpcCardName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的合伙人卡名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcCardName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcCardName">{{tbPartnerConfig.tbpcCardName}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcCardName$||tbPartnerConfig.tbpcCardName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcCardName}}
	{{lz.set("tbpcPrice_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcPrice"))))}}
	{{lz.set("tbpcPrice_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcPrice}}
	<dl lz:if="{{tbpcPrice_editable||tbpcPrice_readonly}}" class="ribs tbpcPrice  " major  ref="tbpcPrice">
		<dt>价　　格:</dt>
		<dd lz:if="{{tbpcPrice_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcPrice}}">
				{{tbPartnerConfig$tbpcPrice}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcPrice}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcPrice" id="tbpcPrice"  value="{{lz.htm(tbPartnerConfig.tbpcPrice)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcPrice_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcPrice">{{tbPartnerConfig.tbpcPrice}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcPrice$||tbPartnerConfig.tbpcPrice)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcPrice}}
	{{lz.set("tbpcProducts_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcProducts"))))}}
	{{lz.set("tbpcProducts_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcProducts}}
	<dl lz:if="{{tbpcProducts_editable||tbpcProducts_readonly}}" class="ribs tbpcProducts   wider" minor  ref="tbpcProducts">
		<dt>产品配置:</dt>
		<dd lz:if="{{tbpcProducts_editable}}" input="grid">
			<lz:block lz:if="{{tbPartnerConfig$tbpcProducts}}">
				{{tbPartnerConfig$tbpcProducts}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcProducts}}">
		    <textarea class="input wide grid" grid="[
		    	['关联商品',null,'query','goods','/manage/query.Commodity.do']
		    	,['数量',null,'number','number','']
		    ]" id="tbpcProducts" name="tbPartnerConfig.tbpcProducts">{{tbPartnerConfig.tbpcProducts}}</textarea> 
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcProducts_readonly}}">
		 	<div class=" wide">
		 		<textarea class=""  style="display:none;" id="tbpcProducts">{{tbPartnerConfig.tbpcProducts}}</textarea>
		 		<span>
			<textarea class="input wide grid" grid="[
		    	['关联商品',null,'query','goods','/manage/query.Commodity.do']
		    	,['数量',null,'number','number','']
		    ]" readonly>{{tbPartnerConfig.tbpcProducts}}</textarea>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcProducts}}
	{{lz.set("tbpcPtJj_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcPtJj"))))}}
	{{lz.set("tbpcPtJj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcPtJj}}
	<dl lz:if="{{tbpcPtJj_editable||tbpcPtJj_readonly}}" class="ribs tbpcPtJj  " major  ref="tbpcPtJj">
		<dt>普通间接奖励:</dt>
		<dd lz:if="{{tbpcPtJj_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcPtJj}}">
				{{tbPartnerConfig$tbpcPtJj}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcPtJj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcPtJj" id="tbpcPtJj"  value="{{lz.htm(tbPartnerConfig.tbpcPtJj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的普通间接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcPtJj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcPtJj">{{tbPartnerConfig.tbpcPtJj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcPtJj$||tbPartnerConfig.tbpcPtJj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcPtJj}}
	{{lz.set("tbpcPtZhj_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcPtZhj"))))}}
	{{lz.set("tbpcPtZhj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcPtZhj}}
	<dl lz:if="{{tbpcPtZhj_editable||tbpcPtZhj_readonly}}" class="ribs tbpcPtZhj  " major  ref="tbpcPtZhj">
		<dt>普通直接奖励:</dt>
		<dd lz:if="{{tbpcPtZhj_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcPtZhj}}">
				{{tbPartnerConfig$tbpcPtZhj}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcPtZhj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcPtZhj" id="tbpcPtZhj"  value="{{lz.htm(tbPartnerConfig.tbpcPtZhj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的普通直接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcPtZhj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcPtZhj">{{tbPartnerConfig.tbpcPtZhj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcPtZhj$||tbPartnerConfig.tbpcPtZhj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcPtZhj}}
	{{lz.set("tbpcDlJj_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcDlJj"))))}}
	{{lz.set("tbpcDlJj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcDlJj}}
	<dl lz:if="{{tbpcDlJj_editable||tbpcDlJj_readonly}}" class="ribs tbpcDlJj  " major  ref="tbpcDlJj">
		<dt>代理间接奖励:</dt>
		<dd lz:if="{{tbpcDlJj_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcDlJj}}">
				{{tbPartnerConfig$tbpcDlJj}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcDlJj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcDlJj" id="tbpcDlJj"  value="{{lz.htm(tbPartnerConfig.tbpcDlJj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的代理间接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcDlJj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcDlJj">{{tbPartnerConfig.tbpcDlJj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcDlJj$||tbPartnerConfig.tbpcDlJj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcDlJj}}
	{{lz.set("tbpcDlZhj_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcDlZhj"))))}}
	{{lz.set("tbpcDlZhj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcDlZhj}}
	<dl lz:if="{{tbpcDlZhj_editable||tbpcDlZhj_readonly}}" class="ribs tbpcDlZhj  " major  ref="tbpcDlZhj">
		<dt>代理直接奖励:</dt>
		<dd lz:if="{{tbpcDlZhj_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcDlZhj}}">
				{{tbPartnerConfig$tbpcDlZhj}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcDlZhj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcDlZhj" id="tbpcDlZhj"  value="{{lz.htm(tbPartnerConfig.tbpcDlZhj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的代理直接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcDlZhj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcDlZhj">{{tbPartnerConfig.tbpcDlZhj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcDlZhj$||tbPartnerConfig.tbpcDlZhj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcDlZhj}}
	{{lz.set("tbpcValidity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcValidity"))))}}
	{{lz.set("tbpcValidity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcValidity}}
	<dl lz:if="{{tbpcValidity_editable||tbpcValidity_readonly}}" class="ribs tbpcValidity  " major  ref="tbpcValidity">
		<dt>合伙人有效期:</dt>
		<dd lz:if="{{tbpcValidity_editable}}" input="number">
			<lz:block lz:if="{{tbPartnerConfig$tbpcValidity}}">
				{{tbPartnerConfig$tbpcValidity}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcValidity}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcValidity" id="tbpcValidity"  value="{{lz.htm(tbPartnerConfig.tbpcValidity)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>已月为单位12 代表12个月后失效</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcValidity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcValidity">{{tbPartnerConfig.tbpcValidity}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcValidity$||tbPartnerConfig.tbpcValidity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcValidity}}
	{{lz.set("tbpcMoney_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcMoney"))))}}
	{{lz.set("tbpcMoney_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcMoney}}
	<dl lz:if="{{tbpcMoney_editable||tbpcMoney_readonly}}" class="ribs tbpcMoney  " major  ref="tbpcMoney">
		<dt>续期订单总额:</dt>
		<dd lz:if="{{tbpcMoney_editable}}" input="menoy">
			<lz:block lz:if="{{tbPartnerConfig$tbpcMoney}}">
				{{tbPartnerConfig$tbpcMoney}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcMoney}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbPartnerConfig.tbpcMoney" id="tbpcMoney"  value="{{lz.htm(tbPartnerConfig.tbpcMoney)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>总金额大于设置的金额，要到期的时候自动续有效期。</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcMoney_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbpcMoney">{{tbPartnerConfig.tbpcMoney}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcMoney$||tbPartnerConfig.tbpcMoney)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcMoney}}
	{{lz.set("tbpcZcGsh_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcZcGsh"))))}}
	{{lz.set("tbpcZcGsh_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcZcGsh}}
	<dl lz:if="{{tbpcZcGsh_editable||tbpcZcGsh_readonly}}" class="ribs tbpcZcGsh   wider" minor  ref="tbpcZcGsh">
		<dt>政策概述:</dt>
		<dd lz:if="{{tbpcZcGsh_editable}}" input="textarea">
			<lz:block lz:if="{{tbPartnerConfig$tbpcZcGsh}}">
				{{tbPartnerConfig$tbpcZcGsh}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcZcGsh}}">
		 	<textarea class="input wide"  id="tbpcZcGsh" name="tbPartnerConfig.tbpcZcGsh" rows="5">{{tbPartnerConfig.tbpcZcGsh}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的政策概述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcZcGsh_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcZcGsh$||tbPartnerConfig.tbpcZcGsh)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcZcGsh}}
	{{lz.set("tbpcXy_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcXy"))))}}
	{{lz.set("tbpcXy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcXy}}
	<dl lz:if="{{tbpcXy_editable||tbpcXy_readonly}}" class="ribs tbpcXy   wider" minor  ref="tbpcXy">
		<dt>协　　议:</dt>
		<dd lz:if="{{tbpcXy_editable}}" input="html">
			<lz:block lz:if="{{tbPartnerConfig$tbpcXy}}">
				{{tbPartnerConfig$tbpcXy}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcXy}}">
		    <textarea class="input wide html"  id="tbpcXy" name="tbPartnerConfig.tbpcXy" style="height:300px;visibility:hidden;">{{tbPartnerConfig.tbpcXy}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的协议</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcXy_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcXy$||tbPartnerConfig.tbpcXy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcXy}}
	{{lz.set("tbpcFxZc_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcFxZc"))))}}
	{{lz.set("tbpcFxZc_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcFxZc}}
	<dl lz:if="{{tbpcFxZc_editable||tbpcFxZc_readonly}}" class="ribs tbpcFxZc   wider" minor  ref="tbpcFxZc">
		<dt>奖励政策:</dt>
		<dd lz:if="{{tbpcFxZc_editable}}" input="textarea">
			<lz:block lz:if="{{tbPartnerConfig$tbpcFxZc}}">
				{{tbPartnerConfig$tbpcFxZc}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcFxZc}}">
		 	<textarea class="input wide"  id="tbpcFxZc" name="tbPartnerConfig.tbpcFxZc" rows="5">{{tbPartnerConfig.tbpcFxZc}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的奖励政策</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcFxZc_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcFxZc$||tbPartnerConfig.tbpcFxZc)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcFxZc}}
	{{lz.set("tbpcQyJsh_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcQyJsh"))))}}
	{{lz.set("tbpcQyJsh_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcQyJsh}}
	<dl lz:if="{{tbpcQyJsh_editable||tbpcQyJsh_readonly}}" class="ribs tbpcQyJsh   wider" minor  ref="tbpcQyJsh">
		<dt>权益介绍:</dt>
		<dd lz:if="{{tbpcQyJsh_editable}}" input="textarea">
			<lz:block lz:if="{{tbPartnerConfig$tbpcQyJsh}}">
				{{tbPartnerConfig$tbpcQyJsh}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcQyJsh}}">
		 	<textarea class="input wide"  id="tbpcQyJsh" name="tbPartnerConfig.tbpcQyJsh" rows="5">{{tbPartnerConfig.tbpcQyJsh}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的权益介绍</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcQyJsh_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcQyJsh$||tbPartnerConfig.tbpcQyJsh)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcQyJsh}}
	{{lz.set("tbpcJrTj_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcJrTj"))))}}
	{{lz.set("tbpcJrTj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcJrTj}}
	<dl lz:if="{{tbpcJrTj_editable||tbpcJrTj_readonly}}" class="ribs tbpcJrTj   wider" minor  ref="tbpcJrTj">
		<dt>加入条件:</dt>
		<dd lz:if="{{tbpcJrTj_editable}}" input="textarea">
			<lz:block lz:if="{{tbPartnerConfig$tbpcJrTj}}">
				{{tbPartnerConfig$tbpcJrTj}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcJrTj}}">
		 	<textarea class="input wide"  id="tbpcJrTj" name="tbPartnerConfig.tbpcJrTj" rows="5">{{tbPartnerConfig.tbpcJrTj}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的加入条件</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcJrTj_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcJrTj$||tbPartnerConfig.tbpcJrTj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcJrTj}}
	{{lz.set("tbpcHhrQy_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcHhrQy"))))}}
	{{lz.set("tbpcHhrQy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcHhrQy}}
	<dl lz:if="{{tbpcHhrQy_editable||tbpcHhrQy_readonly}}" class="ribs tbpcHhrQy   wider" minor  ref="tbpcHhrQy">
		<dt>合伙人权益介绍:</dt>
		<dd lz:if="{{tbpcHhrQy_editable}}" input="textarea">
			<lz:block lz:if="{{tbPartnerConfig$tbpcHhrQy}}">
				{{tbPartnerConfig$tbpcHhrQy}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcHhrQy}}">
		 	<textarea class="input wide"  id="tbpcHhrQy" name="tbPartnerConfig.tbpcHhrQy" rows="5">{{tbPartnerConfig.tbpcHhrQy}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入合伙人卡配置的合伙人权益介绍</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcHhrQy_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(tbPartnerConfig.tbpcHhrQy$||tbPartnerConfig.tbpcHhrQy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcHhrQy}}
	{{lz.set("tbpcQrCode_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"tbpcQrCode"))))}}
	{{lz.set("tbpcQrCode_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbpcQrCode}}
	<dl lz:if="{{tbpcQrCode_editable||tbpcQrCode_readonly}}" class="tbpcQrCode   wider" major  ref="tbpcQrCode">
		<dt>二 维 码:</dt>
		<dd lz:if="{{tbpcQrCode_editable}}" input="image">
			<lz:block lz:if="{{tbPartnerConfig$tbpcQrCode}}">
				{{tbPartnerConfig$tbpcQrCode}}
			</lz:block>
			<lz:block lz:if="{{!tbPartnerConfig$tbpcQrCode}}">
		    <input type="text" class="input" maxlength="128" size="32" name="tbPartnerConfig.tbpcQrCode" id="tbpcQrCode"  value="{{lz.htm(tbPartnerConfig.tbpcQrCode)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#tbpcQrCode').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#tbpcQrCode').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#tbpcQrCode').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传合伙人卡配置的二维码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbpcQrCode_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="tbpcQrCode">{{tbPartnerConfig.tbpcQrCode}}</textarea>
		 		<span>
		 	<img lz:if="{{tbPartnerConfig.tbpcQrCode}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(tbPartnerConfig.tbpcQrCode)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbpcQrCode}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{tbPartnerConfig.tbpcId}}" name="tbPartnerConfig.tbpcId" id="tbpcId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
						
						<button lz:if="{{canExp[0]==true}}" type="button" class="button" onclick='window.location.href="/admin/partner/config.edit.html?id={{tbPartnerConfig.id}}&edittype=methodname"'>
							生成二维码
						</button>
						
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/partner/config.edit.html?edittype=update&id={{tbPartnerConfig.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteConfig('{{tbPartnerConfig.id}}','{{tbPartnerConfig.tbpcId}}')">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>
	
{{lz.set("form_methodname_test",true)}}
<form lz:if="{{form_methodname_test && edittype=='methodname'}}" class="form editform" ref="TbPartnerConfig" id="configForm" name="configForm" target="jsoniframe" action="config.{{edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写合伙人卡配置相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />		
			<input type="hidden" value="{{edittype}}" name="edittype" id="edittype" />
			<input type="hidden" value="{{method}}" name="method" id="method" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			<div class="line"></div>
			<center class="buttons">
				<input type="hidden" value="{{tbPartnerConfig.tbpcId}}" name="tbPartnerConfig.tbpcId" id="tbpcId" />
				<button title="保存数据,关闭窗口,刷新原列表" class="button" type="submit" name="submiter" value="完成">
					&nbsp;<img align="absmiddle" height="20" src="/manage/images/icons/Badge-tick.png"/>
					完成&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/manage/images/icons/Badge-multiply.png"/>
					关闭窗口&nbsp;&nbsp;</button>
			</center>
			<br/>
			
		</div>	
	</div>
	<div class="foot"></div>		
</form>
	


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>